package com.woniuxy.mapper;

import com.woniuxy.entity.FoodOrder;
import com.woniuxy.entity.FoodOrderExample;

import java.util.List;
import java.util.Map;

import com.woniuxy.vo.FoodVO;
import org.apache.ibatis.annotations.Param;


/*
@author Jan
@create 2020-05-20 19:00

*/

public interface FoodOrderMapper {
    long countByExample(FoodOrderExample example);

    int deleteByExample(FoodOrderExample example);

    int deleteByPrimaryKey(Integer foodOrderId);

    int insert(FoodOrder record);

    int insertSelective(FoodOrder record);

    List<FoodOrder> selectByExample(FoodOrderExample example);

    FoodOrder selectByPrimaryKey(Integer foodOrderId);

    int updateByExampleSelective(@Param("record") FoodOrder record, @Param("example") FoodOrderExample example);

    int updateByExample(@Param("record") FoodOrder record, @Param("example") FoodOrderExample example);

    int updateByPrimaryKeySelective(FoodOrder record);

    int updateByPrimaryKey(FoodOrder record);

    /**
     *按照用户的id查询美食订单
     */
    List<FoodVO> selectAllFoodOrderByUserId(Map<String,Object> map);
}